def paixu(b):
    for j in range(len(b) - 1):
        for i in range(len(b) - 1 - j):
            if b[i] > b[i + 1]:
                b[i], b[i + 1] = b[i + 1], b[i]
    print(b)


a = [3, 5, 8, 1]
d = [999, 6, 234, 346, 3, 2, 45, 1]
paixu(a + d)
